package gruppoSoluzione.mainService.data;

import java.util.List;

/**
 * Used to check store any message on a List of Strings
 * 
 * @author Alessandro Martinelli
 */
public class ListStringWriter implements BufferedStringWriter {
	private List<String> writer;

	public ListStringWriter(List<String> writer) {
		super();
		this.writer = writer;
	}

	@Override
	public void writeln(String message) {// <-- not going to throw an exception
											// this time
											// check writeln in
											// BufferedStringWriter and try to
											// figure out
											// what is happening!
		writer.add(message);
	}
}
